package com.ruoyi.web.invest.stockApply.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 股票申购委托对象 stock_apply
 * 
 * @author feng_zi_xiang
 * @date 2021-08-26
 */
public class StockApply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 股票id */
    @Excel(name = "股票id")
    private Long stockId;

    /**
     * 股票代码
     */
    private String stockCode;

    /**
     * 委托人
     */
    @Excel(name = "委托人")
    private String applicant;

    private Long applicantId;

    /**
     * 委托数量
     */
    @Excel(name = "委托数量")
    private Integer number;

    /**
     * 委托价格
     */
    @Excel(name = "委托价格")
    private BigDecimal price;

    /**
     * 总金额
     */
    @Excel(name = "总金额")
    private String totalMoney;

    @Excel(name = "状态")
    private String status;

    @Excel(name = "操作")
    private String action;

    /**
     * 部门ID
     */
    @Excel(name = "部门ID")
    private Long deptId;

    /**
     * 创建者ID
     */
    private Long createById;

    /**
     * 更新者ID
     */
    private Long updateById;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStockId(Long stockId) 
    {
        this.stockId = stockId;
    }

    public Long getStockId() {
        return stockId;
    }

    public void setApplicant(String applicant) {
        this.applicant = applicant;
    }

    public String getApplicant() {
        return applicant;
    }

    public Long getApplicantId() {
        return applicantId;
    }

    public void setApplicantId(Long applicantId) {
        this.applicantId = applicantId;
    }

    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }

    public void setNumber(Integer number) 
    {
        this.number = number;
    }

    public Integer getNumber() 
    {
        return number;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setTotalMoney(String totalMoney) {
        this.totalMoney = totalMoney;
    }

    public String getTotalMoney() {
        return totalMoney;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setCreateById(Long createById) {
        this.createById = createById;
    }

    public Long getCreateById() 
    {
        return createById;
    }
    public void setUpdateById(Long updateById) 
    {
        this.updateById = updateById;
    }

    public Long getUpdateById() 
    {
        return updateById;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("stockId", getStockId())
                .append("applicant", getApplicant())
                .append("number", getNumber())
                .append("price", getPrice())
                .append("totalMoney", getTotalMoney())
                .append("status", getStatus())
            .append("action", getAction())
            .append("deptId", getDeptId())
            .append("createBy", getCreateBy())
            .append("createById", getCreateById())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateById", getUpdateById())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
